package org.fioma.tree.suffixTree.memory;

import org.fioma.tree.Path;
import org.fioma.tree.SimplePath;

public class SimpleLeafSuffixNodeMemory<I extends InternalSuffixNodeMemory<I, F, N>, F extends LeafSuffixNodeMemory<I, F, N>, N extends SuffixNodeMemory<I, F, N>>
		extends SimpleSuffixNodeMemory<I, F, N> implements LeafSuffixNodeMemory<I, F, N> {

	public SimpleLeafSuffixNodeMemory(long pos, SuffixTreeHandlerMemory<I, F, N> treeHandler) {
		super(pos, treeHandler);
	}

	@Override
	public boolean isLeaf() {
		return true;
	}

	@Override
	public Path<N> getLongestPath() {
		return SimplePath.getInstance();
	}

}
